package cn.car.mapper;

import cn.car.domains.entity.SysRolePermissionRelationEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysRolePermissionRelationMapper {

    void insert(SysRolePermissionRelationEntity entity);

    void delete(@Param("permissionId") Long permissionId,  @Param("roleId") Long roleId);

    List<SysRolePermissionRelationEntity> queryByRoleIds(@Param("roleIds") List<Long> roleIds);

    void deleteByRoleId(@Param("roleId") Long roleId);

    void batchInsert(@Param("list") List<SysRolePermissionRelationEntity> sysRolePermissionRelationEntityList);
}
